package top.kaoshanji.r2ch07d;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

/**
 * 代码清单-r2ch07d-235页c：定义一个最终增强
 * @author kaoshanji
 * ^_^
 * create time 2025/5/7 17:20
 */
public class GreetingAfterReturningAdvice implements AfterReturningAdvice {

    @Override
    public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
        System.out.println("希望下次再来！");
    }

}
